package com.nest4cloud.nest.account.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nest4cloud.nest.account.entity.AccountsEntity;
import com.nest4cloud.nest.account.vo.AccountsVo;

import java.math.BigDecimal;
import java.util.List;

public interface AccountsService extends IService<AccountsEntity> {

	/**
	 * 保存账户信息
	 *
	 * @param accounts 账户信息
	 * @return 是否保存成功
	 */
	boolean saveAccount(AccountsEntity accounts);

	Page<AccountsVo> pageEntity(Page page, LambdaQueryWrapper<AccountsEntity> wrapper);

	String getTotalAmount(AccountsEntity accounts);

	/**
	 * 查询登录用户账户信息
	 * @return 返回登录用户账户信息
	 */
	List<AccountsVo> getUserAccount();
}
